<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>搜索结果</title>
    <link rel="stylesheet" href="../../static/css/common/adaptor.css">
    <link rel="stylesheet" href="../../static/css/common/common.css">
    <link rel="stylesheet" href="../../static/css/search/searchResult.css">
</head>
<body>
    <div class="layout">
        <div class="header">
            <div class="arrowIcon"></div>
            <div class="searchInput"></div>
        </div>
        <div class="productList clearfix">
            <div class="itemBox clearfix">
               <!-- 动态渲染 -->
            </div>
            <div class="end"><img src="../../static/img/theend@3x.png" alt=""></div>
        </div>
    </div>
    <script type="text/template" id="itemBox">
        {{each productList as item index}}
        <div class="productItem" data-id="{{item.id}}">
            <div class="productPic"><img src="{{item.midPic}}" alt=""></div>
            <div class="productName">{{item.productName}}</div>
            <div class="price">¥ {{item.price.toFixed(2)}}</div>
            <div class="like"><span>{{item.love}}</span>人喜欢</div>
        </div>
        {{/each}}
        {{if total()===0}}
        <div class="noResult">
            <div class="resIcon"></div>
            <div class="resText">
                <div class="big">没有找到相关的宝贝</div>
                <div class="small">请重新提炼关键字在搜索</div>
            </div>
        </div>
        {{/if}}
    </script>
    <script src="../../static/assets/jquery/jquery.min.js"></script>
    <script src="../../static/assets/fastclick/fastclick.js"></script>
    <script src="../../static/assets/art-template/template.js"></script>
    <script src="../../static/assets/pullmaster/pull.min.js"></script>
    <script src="../../static/js/config/config.js"></script>
    <script src="../../static/js/config/tools.js"></script>
    <script src="../../static/js/search/searchResult.js"></script>
</body>
</html>